package jp.co.dangonet.rest.user;

import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import jp.co.dangonet.model.user.UserLoginRequest;
import jp.co.dangonet.model.user.UserProfile;
import jp.co.dangonet.service.user.IUserLoginService;

@Path("/User")
public class UserRESTService {
	@Inject
	private IUserLoginService userLoginService;
	
	@GET
	@Path("/Login")
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.APPLICATION_JSON)
	public UserProfile loginUser(UserLoginRequest request) {
		return userLoginService.userLogin(request);
	}
}
